#pragma once

#define LOG_MSG WM_USER+1
struct LogPara
{
    char log[256];
    int         level;
};
class LogUtil
{
public:
    LogUtil();
    ~LogUtil();
public:
    enum Level
    {
        Debug = 0,
        Info,
        Warn,
        Error
    };
    static void SendLog(const std::string& log);
    static HWND hLogWnd;

};


std::wstring s2ws(const std::string& s);
std::string ws2s(const std::wstring& s);
